function submitQuiz()
{
	var numberCorrect = 0;
	
	var firstname = document.getElementById('firstname').value;
	var q1 = document.forms.quiz1.question1;
	
	if( q1[ 1 ].checked == true ) 
	{
		numberCorrect = numberCorrect + 1;
	}
	
	var q2 = document.forms.quiz1.question2;
	
	if( q2[ 0 ].checked == true )
	{
		numberCorrect = numberCorrect + 1;
	}

	var q3 = document.forms.quiz1.question3;
	
	if( q3[ 2].checked == true )
	{
		numberCorrect = numberCorrect + 1;
	}
	
	var q4 = document.forms.quiz1.question4;
	
	if( q4[ 0 ].checked == true )
	{
		numberCorrect = numberCorrect + 1;
	}
	
	
	var q5 = document.forms.quiz1.question5;
	
	if( q5[ 0].checked == true )
	{
		numberCorrect = numberCorrect + 1;
	}
	
    var q6 = document.forms.quiz1.question6;
	
	if( q6[ 0].checked == true )
	{
		numberCorrect = numberCorrect + 1;
	}
	
	 var q7 = document.forms.quiz1.question7;
		
		if( q7[ 1].checked == true )
		{
			numberCorrect = numberCorrect + 1;
		}
		
	 var q8 = document.forms.quiz1.question8;
			
			if( q8[ 0].checked == true )
			{
				numberCorrect = numberCorrect + 1;
			}

	var score = (numberCorrect / 8)*100;
	alert( firstname + " score  is " + score + "%" );

}